﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CE.CMI
{
    public class CMI
    {
        public CMI()
        {
            ClearFields();
        }

        private Int64 _cmiid;
        public Int64 CMIId
        {
            get { return _cmiid; }
            set { _cmiid = value; }
        }

        private Int64 _refceuserId;
        public Int64 RefCEUserId
        {
            get { return _refceuserId; }
            set { _refceuserId = value; }
        }

        private string _quoterefno;
        public string QuoteRefNo
        {
            get { return _quoterefno; }
            set { _quoterefno = value; }
        }

        private string _orderefno;
        public string OrderRefNo
        {
            get { return _orderefno; }
            set { _orderefno = value; }
        }

        private Int64 _cecarId;
        public Int64 CECarId
        {
            get { return _cecarId; }
            set { _cecarId = value; }
        }

        private Char _servicetype;
        public Char ServiceType
        {
            get { return _servicetype; }
            set { _servicetype = value; }
        }

        private Char _cartype;
        public Char CarType
        {
            get { return _cartype; }
            set { _cartype = value; }
        }

        private Int64 _ctplprovidercompanyId;
        public Int64 CTPLProviderCompanyId
        {
            get { return _ctplprovidercompanyId; }
            set { _ctplprovidercompanyId = value; }
        }

        private DateTime? _cmidate;
        public DateTime? CMIDate
        {
            get { return _cmidate; }
            set { _cmidate = value; }
        }

        private DateTime? _registrationdate;
        public DateTime? RegistrationDate
        {
            get { return _registrationdate; }
            set { _registrationdate = value; }
        }

        private string _carweight;
        public string CarWeight
        {
            get { return _carweight; }
            set { _carweight = value; }
        }

        private decimal _taxrenewalamount;
        public decimal TaxRenewalAmount
        {
            get { return _taxrenewalamount; }
            set { _taxrenewalamount = value; }
        }

        private decimal _ctplamout;
        public decimal CTPLAmout
        {
            get { return _ctplamout; }
            set { _ctplamout = value; }
        }

        private decimal _ctpldiscount;
        public decimal CTPLDiscount
        {
            get { return _ctpldiscount; }
            set { _ctpldiscount = value; }
        }

        private decimal _chargedamount;
        public decimal ChargedAmount
        {
            get { return _chargedamount; }
            set { _chargedamount = value; }
        }

        private decimal _ems;
        public decimal EMS
        {
            get { return _ems; }
            set { _ems = value; }
        }

        private decimal _cmitotal;
        public decimal CMITotal
        {
            get { return _cmitotal; }
            set { _cmitotal = value; }
        }

        private string _carmake;
        public string CarMake
        {
            get { return _carmake; }
            set { _carmake = value; }
        }

        private string _carmodel;
        public string CarModel
        {
            get { return _carmodel; }
            set { _carmodel = value; }
        }

        private string _body;
        public string Body
        {
            get { return _body; }
            set { _body = value; }
        }

        private int _cc;
        public int CC
        {
            get { return _cc; }
            set { _cc = value; }
        }

        private int _door;
        public int Door
        {
            get { return _door; }
            set { _door = value; }
        }

        private int _manufactyear;
        public int ManufactYear
        {
            get { return _manufactyear; }
            set { _manufactyear = value; }
        }

        private string _makemodeldesc;
        public string MakeModelDesc
        {
            get { return _makemodeldesc; }
            set { _makemodeldesc = value; }
        }

        private string _chassisno;
        public string ChassisNo
        {
            get { return _chassisno; }
            set { _chassisno = value; }
        }

        private string _enginenumber;
        public string EngineNumber
        {
            get { return _enginenumber; }
            set { _enginenumber = value; }
        }

        private string _enginesize;
        public string EngineSize
        {
            get { return _enginesize; }
            set { _enginesize = value; }
        }

        private string _carcolor;
        public string CarColor
        {
            get { return _carcolor; }
            set { _carcolor = value; }
        }

        private string _name;
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private string _ownername;
        public string OwnerName
        {
            get { return _ownername; }
            set { _ownername = value; }
        }

        private string _carplate;
        public string CarPlate
        {
            get { return _carplate; }
            set { _carplate = value; }
        }

        private string _province;
        public string Province
        {
            get { return _province; }
            set { _province = value; }
        }

        private string _address;
        public string Address
        {
            get { return _address; }
            set { _address = value; }
        }

        private string _email;
        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        private string _mobile;
        public string Mobile
        {
            get { return _mobile; }
            set { _mobile = value; }
        }

        private bool _isSameAddress;
        public bool IsSameAddress
        {
            get { return _isSameAddress; }
            set { _isSameAddress = value; }
        }

        private string _deliveryname;
        public string DeliveryName
        {
            get { return _deliveryname; }
            set { _deliveryname = value; }
        }

        private string _deliveryaddress;
        public string DeliveryAddress
        {
            get { return _deliveryaddress; }
            set { _deliveryaddress = value; }
        }

        private bool _isenglish;
        public bool IsEnglish
        {
            get { return _isenglish; }
            set { _isenglish = value; }
        }

        private string _trackingCode;
        public string TrackingCode
        {
            get { return _trackingCode; }
            set { _trackingCode = value; }
        }

        private Int64 _providercompanyId;
        public Int64 ProviderCompanyId
        {
            get { return _providercompanyId; }
            set { _providercompanyId = value; }
        }

        private string _expirymonth;
        public string ExpiryMonth
        {
            get { return _expirymonth; }
            set { _expirymonth = value; }
        }

        private string _status;
        public string Status
        {
            get { return _status; }
            set { _status = value; }
        }

        private DateTime? _deliverydate;
        public DateTime? DeliveryDate
        {
            get { return _deliverydate; }
            set { _deliverydate = value; }
        }


        public void ClearFields()
        {
            _cmiid = 0;
            _refceuserId = 0;
            _quoterefno = "";
            _cecarId = 0;

            _servicetype = ' ';
            _cartype = ' ';
            _ctplprovidercompanyId = 0;
            _cmidate = null;
            _registrationdate = null;
            _carweight = "";
            _taxrenewalamount = 0;
            _ctplamout = 0;
            _ctpldiscount = 0;
            _chargedamount = 0;
            _ems = 0;
            _cmitotal = 0;
            _carmake = "";
            _carmodel = "";
            _body = "";
            _cc = 0;
            _door = 0;
            _manufactyear = 0;
            _makemodeldesc = "";
            _chassisno = "";
            _enginenumber = "";
            _enginesize = "";
            _carcolor = "";
            _name = "";
            _ownername = "";
            _carplate = "";
            _province = "";
            _address = "";
            _email = "";
            _mobile = "";
            _isSameAddress = true;

            _deliveryname = "";
            _deliveryaddress = "";

            _providercompanyId = 0;
            _expirymonth = "";

            _trackingCode = "";
            _isenglish = false;
            _status = "";

            _deliverydate = null;
        }

    }
}
